public class Text2 {
    public static void main(String[] args) {
        //循环语句练习 while循环、for循环、do...while循环三种
        //while输出1到100的数字的和
        int i = 1;
        int sun = 0;
        while (i <= 100) {
            sun=sun+i;
            i++;
        }
        System.out.println(sun);
        //计算阶乘
        int fac = 1;
        int sum = 1;
        while (fac < 8){
            sum = sum * fac;
            fac++;
        }
        System.out.println(sum);
        //计算阶乘相加
        int mun = 1;
        int suiwm = 0;
       while (mun <= 7){
           int aa = 1;
           int tmp = 1;
           while (tmp <= mun){
               aa *= tmp;
               tmp++;
           }
           suiwm += aa;
           mun++;
       }
        System.out.println("suiwm:"+suiwm);
        //找到100---200之间3的倍数
        int ww = 100;
        while (ww <= 200){
            if((ww % 3) != 0){
                ww++;
                continue;
            }
            System.out.println(ww);
            ww++;
        }


    }
}
